package com.fengye.demo.runner;

import com.fengye.demo.context.SessionContext;
import org.springframework.boot.ApplicationArguments;
import org.springframework.stereotype.Component;

import java.util.HashMap;
import java.util.Map;

/**
 * @author haiqing.gao
 * @date 2024-01-23 17:20
 */
@Component
public class DemoRunner implements org.springframework.boot.ApplicationRunner {
    @Override
    public void run(ApplicationArguments args) throws Exception {
        Map<String, String> map = new HashMap<>();
        map.put("1", "张三");
        map.put("2", "李四");
        map.put("3", "王五");
        map.put("4", "赵六");

        SessionContext.init(map);

    }
}
